VirtualNetwork::VirtualNetwork( const char* in_file ) : Network( in_file ){
	
}

VirtualNetwork::~VirtualNetwork(){
	
}

int VirtualNetwork::getPrize(){
	return prize;
}

VirtualNetwork::VirtualNetwork( const VirtualNetwork& vn ) : Network( vn.m, vn.n, vn.prize ){
	for( int i = 0; i < vn.m; ++i )
		this->nodes[i] = vn.nodes[i];
	
	for( int i = 0; i < vn.m; ++i )
		for( int j = 0; j < vn.m; ++j )
			if( vn.graph[i][j] != NULL ){
				this->graph[i][j] = new struct Edge;
				*this->graph[i][j] = *vn.graph[i][j];
			}
	
}